<#--
/****************************************************
 * Description: 角色权限的简单列表页面，没有编辑功能
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/view/templates/ace/ace-inc.ftl">
<@list >
<table class="table">
    <thead>
    <tr>
        <th><input type="checkbox" class="bscheckall"></th>
        <th>客户id</th>
        <th>姓名</th>
        <th>手机</th>
        <th>身份证号</th>
        <th>客户状态</th>
        <th>备注</th>
        <th>意向车辆</th>
        <th>创建人</th>
        <th>更新人</th>
        <th>创建时间</th>
        <th>更新时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <#if page.items??>
        <#list page.items as item>
        <tr>
            <td><input type="checkbox" class="bscheck" data="id:${item.id?exists?then(item.id?c,'')}"></td>
            <td>${item.id?exists?then(item.id?c,'')}</td>
            <td>${item.name!''}</td>
            <td>${item.phone!''}</td>
            <td>${item.idCard!''}</td>
            <td>${getText(item?exists?then(item.status?c,''))}</td>
            <td>${item.remark!''}</td>
            <td style="color:red;">${item.destinationCar!''}</td>
            <td>${item.createUserName}</td>
            <td>${item.updateUserName}</td>
            <td>${item.createTime?string('dd.MM.yyyy HH:mm:ss')}</td>
            <td>${item.updateTime?string('dd.MM.yyyy HH:mm:ss')}</td>
            <td>
                <@button icon="pencil" type="primary" size="sm" onclick="bfsu.edit('${base}/yihang/customer/input/${item.id?exists?then(item.id?c,'')}','修改客户信息');">修改</@button>
                <@button icon="remove" type="primary" size="sm" onclick="bfsu.del('${base}/yihang/customer/delete/${item.id?exists?then(item.id?c,'')}','删除客户信息？');">删除</@button>
                <@button icon="pencil" type="primary" size="sm" onclick="bfsu.html('${base}/yihang/vehicle/index?id=${item.id?exists?then(item.id?c,'')}');">车辆管理</@button>
            </td>
        </tr>
        </#list>
    </#if>
    </tbody>
</table>
</@list>